<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    
    <title></title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>ext-3.2.1/resources/css/ext-all.css"/>
	<script type="text/javascript" src="<%=basePath%>ext-3.2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath%>ext-3.2.1/ext-all.js"></script>
	<script type="text/javascript" src="<%=basePath%>ext-3.2.1/ux/PageComboResizer.js"></script>
	<script type="text/javascript" src="<%=basePath%>ext-3.2.1/ext-lang-zh_CN.js"></script>
	<script type="text/javascript" src="<%=basePath%>resources/plugin/My97DatePicker/WdatePicker.js"></script>	
	<script type="text/javascript" src="<%=basePath%>scripts/jquery-1.4.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>scripts/apputil.js"></script>
	<link rel="stylesheet" href="../scripts/kindeditor-4.1/themes/default/default.css" />
	<link rel="stylesheet" href="../scripts/kindeditor-4.1/plugins/code/prettify.css" />
	<script charset="utf-8" src="../scripts/kindeditor-4.1/kindeditor-min.js"></script>
	<script charset="utf-8" src="../scripts/kindeditor-4.1/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../scripts/kindeditor-4.1/plugins/code/prettify.js"></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
	  <style type="text/css">
	    body{
	    font-size: 12px;
	    
	  }
	  	.td{
			height: 25px;
		}
		.tdB {
			border-bottom:1px solid #0190FB;
		}
		
		.tdL {
			border-left:1px solid #0190FB;
		}
		
		.tdR {
			border-right:1px solid #0190FB;
		}
		
		.tdT {
			border-top:1px solid #0190FB;
		}
	</style>
	<script type="text/javascript">
		function checkForm(){
	    var name = $("#name");
	    if (name.val()=="") {
	        alert("真实姓名不能为空！")
	        name.focus();
	        return false;
	    }
	     document.forms[0].submit();
	    
	}
	function goBackReset(){
    parent.closeDH();
    }
	</script>
	<body>
	<form action="<%=basePath%>tiCase/saveOrUpdate.action" method="post" id="myform" name="myform" enctype="multipart/form-data"> 
	<div align="center">
	<table width="80%" border="0" cellspacing="1" cellpadding="5" class="tabCls" style="margin-top: 10px;">
		<tr>
			<td colspan="4" align="center" bgcolor="#ffffff">
				<span style="font-size: 25px; font: ; font-weight: bold;">病历信息维护</span>
			</td>
		</tr>
	</table>
		<table width="90%" border="0" style="margin-top: 10px;">
			
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">真实姓名：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input id="name" type="text" name="tiCase.name" value="${tiCase.name}" maxlength="15" ></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">性别：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input type="radio" name="tiCase.sex" value="1" checked="checked" ${tiCase.sex eq 1? 'checked':''}>男 <input name="tiCase.sex" type="radio"  ${tiCase.sex eq 0 ?'checked':''} value="0">女</td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">出生日期：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input id="birthday" type="text"  name="tiCase.birthday" value="${tiCase.birthday}" onFocus="WdatePicker({firstDayOfWeek:7,dateFmt:'yyyy-MM-dd'})" class="Wdate"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">年龄：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input id="age" maxlength="2" type="text" value="${tiCase.age}" size=4 name="tiCase.age"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">出生地：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input  size=45 type="text" value="${tiCase.bornPlace}" name="tiCase.bornPlace" maxlength="100"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">城镇：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input size=45 type="text" value="${tiCase.homeTown}" name="tiCase.homeTown" maxlength="100"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">婚姻：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input type="radio" name="tiCase.marriage" ${tiCase.marriage eq 1? 'checked':''}  value="1" checked="checked">已婚 <input type="radio" ${tiCase.marriage eq 0 ?'checked':''}  name="tiCase.marriage"  value="0">未婚</td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">身份证：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input  type="text" name="tiCase.idcard" value="${tiCase.idcard}" maxlength="18"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">职业：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input type="text"  name="tiCase.profession" maxlength="25" value="${tiCase.profession}"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">现住地址：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input  type="text"  name="tiCase.nowAddress" maxlength="50" value="${tiCase.nowAddress}"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">家庭地址：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input  type="text" name="tiCase.homeAddress" maxlength="100" value="${tiCase.homeAddress}"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">工作地址：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input  type="text" name="tiCase.workAddress"  maxlength="100"  value="${tiCase.workAddress}"></td>
			</tr>
			<tr>
				<td align="right" class="tdT tdR tdL" width="20%">手机：</td>
				<td colspan="4" class="tdT tdR" width="100%" align="left"><input id="phone" type="text" name="tiCase.tel" value="${tiCase.tel}"></td>
			</tr>
			<tr>
				<td align="right" class="tdR tdL tdB tdT">描述：</td>
				<td class="tdR tdB tdT" colspan="4">
			
				<br></td>
			</tr>
		</table>
		<input type="hidden" id="id" name="tiCase.id" value="${tiCase.id}"/>
		<input type="hidden" name="tiCase.isRead" value="${tiCase.isRead}"/>
		<input type="hidden" name="tiCase.departId" value="${tiCase.departId}"/>
		<table width="80%" class="tabCls">
		<tr>
			<td align="center">
				<input type="button" id="save" name="Submit" value="保 存" 
					onClick="checkForm()" class="button_sty saveBtn" />	
				<input type="button" id="reset" name="reset" value="返 回"
						onClick="goBackReset()" class="button_sty backBtn" />
			</td>
		</tr>
	</table>
	</div>
	</form>
	</body>

</html>
